/* Code licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php */
/**
* @description <p>Widgets used for Phonebook page layout.</p>
**/

MENU.tab_view_field = null;

MENU.tabView = function (oTabView) {
    if (arguments.length>0) {
        MENU.tab_view_field = oTabView;
    }
    return MENU.tab_view_field;
};

MENU.getTabView = MENU.tabView;
MENU.setTabView = MENU.tabView;

EDITOR.activate = function () {
 MENU.getTabView().set("activeIndex", DIV_EDITOR_INDEX);
};
        
LISTER.activate = function () {
 MENU.getTabView().set("activeIndex", DIV_LISTER_INDEX);
 LISTER.listerActivateEvent.fire(LISTER);
};

MENU.initTabView = function () {
    MENU.setTabView(new YAHOO.widget.TabView("tabDiv"));    
    MENU.onProfileReady();    
}

YAHOO.util.Event.addListener(window, "load", MENU.initTabView);
